package com.umiwe.permission.service;

import com.dingtalk.api.response.*;

import java.util.Map;

public interface DingDingService {


    public String getDingDingToken();

    /**
     * 用户管理 单个
     * @param url
     * @param departmentId
     * @param offset
     * @param size
     * @return
     */
    public OapiUserSimplelistResponse oapiUserSimplelistRequest(String url, Integer departmentId, Long offset, Long size);
    /**
     * 用户管理 list
     */
    public OapiUserListbypageResponse oapiUserListbypageRequest(String url, Integer departmentId, Long offset, Long size);

    /**
     * 部门管理
     * @param value
     * @param departmentId
     * @return
     */
    public OapiDepartmentListResponse oapiDepartmentListRequest(String value, String departmentId);
    /**
     * 钉钉扫码 获取用户id
     */
    public Map<String,String> oapiSnsGetuserinfoBycodeRequest(String code, String value);

    /**
     * 根据unionid 获取userid
     * user/getUseridByUnionid
     */
    public Map<String,String> oapiUserGetUseridByUnionidResponse(OapiSnsGetuserinfoBycodeResponse og);


    /**
     * 获取用户详情
     * user/get
     */
    public Map<String,String> userGet(String userId);
}
